package com.cn.bopu.common.upms.user.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * @Description:用户临时应用权限表
 * @author 史绍波
 * @since 2020-01-09
 */
@ApiModel(value ="用户临时应用权限表")
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("user_temporary_application")
public class UserTemporaryApplication implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    @TableId(value = "id", type = IdType.UUID)
    private String id;
    @ApiModelProperty(value = "用户平台关系表ID")
    @TableField("user_platform_id")
    private String userPlatformId;
    @ApiModelProperty(value = "应用权限ID")
    @TableField("application_id")
    private String applicationId;
    @ApiModelProperty(value = "开始时间")
    @TableField("start_time")
    private LocalDateTime startTime;
    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;
    @ApiModelProperty(value = "权限状态：0 禁用，1 放开")
    @TableField("state")
    private String state;
    @ApiModelProperty(value = "创建时间戳")
    @TableField("create_timestamp")
    private LocalDateTime createTimestamp;
    @ApiModelProperty(value = "更新时间戳")
    @TableField("update_timestamp")
    private LocalDateTime updateTimestamp;


    public static final String ID = "id";

    public static final String USER_PLATFORM_ID = "user_platform_id";

    public static final String APPLICATION_ID = "application_id";

    public static final String START_TIME = "start_time";

    public static final String END_TIME = "end_time";

    public static final String STATE = "state";

    public static final String CREATE_TIMESTAMP = "create_timestamp";

    public static final String UPDATE_TIMESTAMP = "update_timestamp";

}
